<?php
// Note: This file is included from the library/People/People.Control.SignInForm.php control.

$this->Render_Warnings();
?>
<div id="Form" class="SignInForm">
	<fieldset>

	<?php $this->Render_PostBackForm($this->FormName); ?>

	<p><?php echo $this->Context->GetDefinition('Sign-in with your OpenID...'); ?></p>
	<ul>
		<li>
			<label for="txtOpenIdUrl"><?php echo $this->Context->GetDefinition('Your OpenID'); ?></label>
			<input id="txtOpenIdUrl" type="text" name="OpenIdUrl" value="<?php echo $this->OpenIdUrl; ?>" class="Input" />
		</li>
	</ul>
	<div class="Submit"><input type="submit" name="btnSignIn" value="<?php
		echo $this->Context->GetDefinition('Proceed');
		?>" class="Button" /></div>

	<p><?php echo $this->Context->GetDefinition('... Or with your username and password.'); ?></p>
	<ul>
		<li>
			<label for="txtUsername"><?php echo $this->Context->GetDefinition('Username'); ?></label>
			<input id="txtUsername" type="text" name="Username" value="<?php
				echo $this->Username;
				?>" class="Input" maxlength="20" />
		</li>
		<li>
			<label for="txtPassword"><?php echo $this->Context->GetDefinition('Password'); ?></label>
			<input id="txtPassword" type="password" name="Password" value="" class="Input" />
		</li>
		<li id="RememberMe">
			<?php
			echo GetDynamicCheckBox(
				'RememberMe', 1, ForceIncomingBool('RememberMe', 0), '',
				$this->Context->GetDefinition('RememberMe'));
				?>
		</li>
	</ul>
	<div class="Submit"><input type="submit" name="btnSignIn" value="<?php
		echo $this->Context->GetDefinition('Proceed');
		?>" class="Button" /></div>
	</form>
	</fieldset>
	<ul class="MembershipOptionLinks">
		<li class="ForgotPasswordLink">
			<?php
			printf('<a href="%s">%s</a>',
				GetUrl($this->Context->Configuration, $this->Context->SelfUrl, '', '', '', '', 'PostBackAction=PasswordRequestForm'),
				$this->Context->GetDefinition('ForgotYourPassword'));
				?>
		</li>
		<li class="ApplyForMembershipLink">
			<?php
			printf('<a href="%s">%s</a>',
				GetUrl($this->Context->Configuration, $this->Context->SelfUrl, '', '', '', '', 'PostBackAction=ApplyForm'),
				$this->Context->GetDefinition('ApplyForMembership'));
			?>
		</li>
	</ul>
</div>